function showPos(x1,y1,x2,y2, id){
	if(document.all){
		var relx = 14;
		var rely = 14;	
	}
	else{
		var relx = 14;
		var rely = 14;	
	}
	
	var w = Math.abs(x2-x1);
	var h = Math.abs(y2-y1);
	
	var cx = x1 + 0.5*w;
	var cy = y1 + 0.5*h;
	
	var r    = document.getElementById('pos');
	r.style.left = (relx+cx)+ 'px';
	r.style.top  = (rely+cy)+ 'px';	
    r.style.visibility = 'visible';		
}
 
function processPos(x1,y1,x2,y2, id){
	var r = showPos(x1,y1,x2,y2, id);
	var target = "http://localhost/web/gis/search.php?id="+id;	
	jQuery.facebox({ ajax: target }) ;	 
}
function processBox(menu, id){
	var target = "http://localhost/web/gis/search.php?s="+menu+"&id="+id;	
	jQuery.facebox({ ajax: target }) ;	 
}